home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / npa923c.zip / NPA.DOC < prev    next >
Text File  |  1992-09-17  |  27KB  |  563 lines

  1.  
  2.                                    -  NPA  -
  3.  
  4.                               Numbering Plan Area
  5.  
  6.                           The Comprehensive Area Code
  7.                               and Exchange Locator
  8.  
  9.                                    <17Sep92>
  10.  
  11.                              (C) Copyright 1991-92
  12.  
  13.                                The PC Consultant
  14.                                  P.O. Box 42086
  15.                              Houston TX 77242-2086
  16.                       Ph. 713/826-2629  (v-mail no answer)
  17.                                  CIS 73670,1164
  18.  
  19.  
  20.           NPA is a comprehensive area code, state, city, and exchange
  21.      locator.  NPA stands for Numbering Plan Area - which is phone speak
  22.      for area code.
  23.  
  24.           The data files accessed by NPA were compressed from over five
  25.      megabytes of raw data that comprises the NANP (North American
  26.      Numbering Plan) for the US and Canadian telephone system.  Other area
  27.      code programs simply show you the state and a few larger cities.  But
  28.      NPA goes WAY beyond that!
  29.  
  30.           Below lists some of the powerful features of NPA:
  31.  
  32.           ■ Find one or any number of cities based on state, area code
  33.             (NPA), city name, or local number prefix (NXX).
  34.  
  35.           ■ Once found, you can display several combinations of the
  36.             following:  city name, state name, npa, city nxx's, county
  37.             name, county population, best guess primary zipcode, and
  38.             latitude/longitude.
  39.  
  40.           ■ Data is viewable in a scrollable buffer allowing you to easily
  41.             browse through the findings.
  42.  
  43.           ■ Includes the new area codes 310, 410, 510, and the recent
  44.             introduction of the 706 area code along with many new NXXs.
  45.  
  46.           ■ NEW!  Included are two flat files containing a summary of all
  47.             NPA assignments and international country codes for 83
  48.             countries and their larger cities.
  49.  
  50.  
  51.           With NPA, you can locate all area codes in a state, display the
  52.      cities in those area codes, and even display all the valid exchanges
  53.      (sometimes called the prefix - or NXX in TelCo lingo) belonging to
  54.      the city!  Even podunk-hollow will show up if it has it's own
  55.      telephone company wire center.  And even if podunk hollow doesn't
  56.      show up under it's own name, it's local NXXs will likely appear in a
  57.      neighboring larger city with whom it shares a wire center.
  58.  
  59.           You can search based on state or area code.  You can narrow the
  60.      search by specifying a city search mask or only a certain NXX.  You
  61.      can search for cities having a certain number of exchanges - or
  62.      search for a range number of exchanges.  And once all this is found,
  63.      you can optionally display with the combinations noted in the
  64.      second bullet above.
  65.  
  66.           You can specify all parameters on the command line or if you
  67.      just say 'NPA' with no parameters a full screen query will appear
  68.      with online help.  Either way, NPA will display it's output in a
  69.      buffer that will let you browse forward and backward.
  70.  
  71.  
  72.           Syntax for executing NPA:
  73.  
  74.           NPA (state|npa)[.city|.nxx] [min=x] [max=x] [-25] [-50] [-b]
  75.               [-c] [-co] [-lat] [-pop] [-s] [-x] [-zip]
  76.  
  77.                ( ) = required parameter
  78.                [ ] = optional parameter
  79.                 |  = select one from listed parameters
  80.  
  81.  
  82.       where:   state      : Two letter postal code or portion of state/
  83.                             province name for a search.  NPA will show all
  84.                             area codes and cities for state/province that
  85.                             fall within search parms.  If you specify '*',
  86.                             then all states/provinces will be searched.
  87.  
  88.                npa        : Numbering Plan Area - three digit area code.
  89.                             NPA will show state and cities that are in the
  90.                             area code specified.
  91.  
  92.                .city      : Narrow the search to cities whose names begin
  93.                             with the letters specified here.  ie:
  94.                             Entering 'tx.hou' will show Houston TX.
  95.  
  96.                .nxx       : Specific prefix you wish to locate.
  97.  
  98.                min=x      : Display cities having at least x number of
  99.                             exchanges.  Omitting this parameter will
  100.                             assume a default based on other parameters
  101.                             specified.  This is detailed below.
  102.  
  103.                max=x      : Display cities having at most x number of
  104.                             exchanges.  Omitting this parameter defaults
  105.                             to no max.
  106.  
  107.                -25        : Forces screen into 25 line mode even if screen
  108.                             is in a different lines per screen mode prior
  109.                             to executing NPA.
  110.  
  111.                -50        : Forces screen into 50 line mode which allows
  112.                             you to see much more on the screen at a time.
  113.                             You must specify the -25/-50 option on the DOS
  114.                             command line for it to be honoured.  However,
  115.                             if you specify -25/-50 *by itself* on the
  116.                             command line, you'll still get full screen
  117.                             query mode.  NPA will automatically detect if
  118.                             screen is already in 50 line mode and use it.
  119.                             Other non-standard modes such as 24, 30, and
  120.                             43 line mode are not recognized by NPA.
  121.  
  122.                -b         : Don't display output in scrollable buffer.
  123.                             Normally, NPA will display output in a
  124.                             scrollable buffer that allows you to browse
  125.                             forward and backward.  This option causes NPA
  126.                             to display output in regular line mode.
  127.  
  128.                -c         : Don't pause after each screen.  Normally,
  129.                             NPA pauses each screenful.  This option is
  130.                             only meaningful when used with -b.
  131.  
  132.                -co        : Display county name next to city name.  When
  133.                             this option is used, option -x/-lat/-zip, if
  134.                             specified, is ignored.
  135.  
  136.                -pop       : Display approximate county-wide population
  137.                             next to county and city name.  This option
  138.                             forces -co enabled, and causes -x/-lat/-zip,
  139.                             if specified, to be ignored.
  140.  
  141.                -lat       : Also display latitude and longitude next to
  142.                             NXX data output.  This option forces -x on.
  143.                             Please note that using -lat may potentially
  144.                             cause NPA to generate copious gobs of output
  145.                             and therefore take longer to generate.  It's
  146.                             recommended that -lat be limited to narrow
  147.                             searches.
  148.  
  149.                -s         : Used with '.city'.  Causes NPA to perform a
  150.                             sliding search on city name in database when
  151.                             looking for a match.  IE:  Using -s, the
  152.                             command 'npa tx.usto' will find Houston, TX.
  153.                             Without -s, then Houston would not be located
  154.                             unless your command is 'npa tx.hous'.  This
  155.                             is useful for finding all cities with, for
  156.                             example, 'lake' somewhere in the name.
  157.  
  158.                -x         : Also display all valid exchanges for this
  159.                             city.  Default is state, NPA and city name
  160.                             only.
  161.                -zip
  162.                           ; Also display zipcode next to NXX data output.
  163.                             This option forces -x on.  Like -lat, this
  164.                             option can potentially create a gob of output.
  165.                             And -zip used with -lat can REALLY generate a
  166.                             slew of output.  NOTE:  The reported zipcode
  167.                             is a only best guess for the prevalent zipcode
  168.                             in the area.  There is no one-to-one mapping
  169.                             between zipcode and NPA.  Zipcodes are
  170.                             provided for casual reference only.  Your
  171.                             mileage may vary.
  172.  
  173.  
  174.           A brief note about options that enable/disable other options:
  175.      There are two primary output types.  One that displays the NPA on the
  176.      left with city names across the screen to the right, and one that
  177.      display the NPA *and* city name on the left with that city's NXXs
  178.      across the screen to the right.  These are mutually exclusive output
  179.      types and each has it's own (also mutually exclusive) set of options.
  180.      The two primary display types are:
  181.  
  182.           ■ The default is to display just NPA on the left and city names
  183.             across the screen to the right.  By adding -co, the county
  184.             name is also displayed immediately after the city name on the
  185.             same line.  By adding -pop, you'll also see the estimated
  186.             county population along with city and county name.
  187.  
  188.           ■ By specifying -x, you are instructing NPA to display NPA and
  189.             city name on the left and that city's NXX data across the
  190.             screen to the right.  There are also two options that cause
  191.             NPA to display additional NXX specific data.  The -lat option
  192.             displays the NXXs latitude and longitude immediately after the
  193.             NXX on the same line.  The -zip option displays the NXXs
  194.             primary or most pravalent zipcode.
  195.  
  196.  
  197.           All output is normally stored in a virtual memory buffer that
  198.      allows you to scroll back and forth to facilitate viewing.  The
  199.      scrollable buffer will hold approximately 32,000 lines so you're not
  200.      too likely to overflow it.  Some options, especially -zip and -lat
  201.      (and especially so when used together), can cause NPA to generate
  202.      copious output - which takes longer to generate.  It's best to use
  203.      these options with a narrow search specification to limit output to a
  204.      manageable size.  Exceeding the buffer's size will cause NPA to
  205.      unceremoniously abort.
  206.  
  207.           NPA will not normally display cities having fewer than 15 NXXs.
  208.      This is because people are often not interested in locating smaller
  209.      cities.  However, there are several default minimums depending on
  210.      other search specifications made.  The default minimums are described
  211.      as follows:
  212.  
  213.           Specify state only:         Minimum = 15  NXXs
  214.           Specify NPA only:           Minimum =  5  NXXs
  215.           Also specify city or NXX:   Minimum =  1  NXX
  216.  
  217.           The lowest determined value will be used.  The default minimum
  218.      lowers as your search specification narrows to ensure the greatest
  219.      chance of finding your data.
  220.  
  221.  
  222.      Example 1:
  223.  
  224.           ie:  The command 'npa 713.aldine -x'  will display:
  225.  
  226.     NPA City Name       NXXs
  227.     --- --------------- -------------------------------------------------------
  228. TX:Texas
  229.     713 Aldine          442 449 590 985 986 987
  230.  
  231.  End NPA
  232.  
  233.  
  234.      This shows you:  The state of Texas has a city named 'Aldine' in the
  235.      713 area code and has six exchanges listed.
  236.  
  237.  
  238.  
  239.      Example 2:
  240.  
  241.           If you wish to locate a city with a two part name, such as the
  242.      city of 'San Antonio' in Texas, then include a hyphen '-' where the
  243.      space would normally appear.  We'll also add the -pop options.  (This
  244.      will force -co also)
  245.  
  246.           ie:  The command 'npa tx.san-an -pop' will display:
  247.  
  248.     NPA City Name
  249.     --- -----------------------------------------------------------------------
  250. TX:Texas
  251.     512 San Antonio-Bexar-1170000
  252.     915 San Angelo-Tom Green-98100
  253.  
  254.  End NPA
  255.  
  256.           This shows us two cities along with their respective county name
  257.      and county population.  In the case of San Antonio, the county is
  258.      'Bexar' (pronouned 'bear') and the county population is approximately
  259.      1,170,000.  Since the displayed population is county-wide and not
  260.      just for the city, the -pop option forces the -co option so you'll
  261.      see the county name also to avoid confusion.
  262.  
  263.  
  264.  
  265.      Example 3:
  266.  
  267.           To locate cities that have the word 'saint' in their name, ie:
  268.      'St. Paul' in Minnesota, you must abbreviate using 'st' (without the
  269.      period).  Therefore, the following command will produce:
  270.  
  271.           ie:  The command 'npa mn.st-p' will display:
  272.  
  273.     NPA City Name
  274.     --- ----------------------------------------------------------------------- 507 St Peter
  275. MN:Minnesota
  276.     507 St Peter
  277.     612 St Paul, St Paul Park
  278.  
  279.  End NPA
  280.  
  281.  
  282.           NOTE:  Some cities, especially in Canada, abbreviate 'saint'
  283.      using either 'st' (masculine form) or 'ste' (feminine form).
  284.      Sometimes it's difficult to know which gender form to use as French
  285.      names can be pretty elaborate obscuring gender from an American
  286.      audience.  To help eliminate this confusion, all 'ste.' forms were
  287.      converted to 'st' (without the period).  Now, before somebody labels
  288.      me a sexist, let me explain why this was done:
  289.  
  290.           1.  As mentioned above, many Americans (including myself) have
  291.               difficulty determining gender on some of the more elaborate
  292.               French names - making it difficult to locate the desired
  293.               city.
  294.  
  295.           2.  The wire center names contained in the source database are
  296.               *NEVER* over ten characters in length - so the 'e' in 'ste'
  297.               is frequently dropped on many of the wire center names in
  298.               order to gain that valuable extra character - making the
  299.               use of 'ste' inconsistent.
  300.  
  301.           3.  It is easier to locate a 'saint' city since you don't have
  302.               two different abbreviations to deal with.  And since the
  303.               'st' form far outnumbered the 'ste' form, it made more sense
  304.               to adopt 'st' as the standard - fewer records to convert.
  305.  
  306.           So there.
  307.  
  308.           The NXX display feature is invaluable for finding the location
  309.      of a phone number.  IE:  Suppose you have the following phone number
  310.      508/898-nnnn (Don't want to use a real one!) - no name, just a number
  311.      laying around.  You have no idea who gave it to you or what city.  By
  312.      using NPA (Specify 'npa 508.898 -co') you'll discover that the number
  313.      belongs in Westborough, MA in the county of Worcester.  Now that you
  314.      know the county and city, you might be able to figure out who gave
  315.      you the number?????  This feature alone is invaluable to police
  316.      investigators trying to track down leads on miscellaneous phone
  317.      numbers discovered during the course of investigation.
  318.  
  319.           BBS sysops can use this feature to validate that a phone number
  320.      supplied by a user during registration can even possibly exist.
  321.      Obviously, NPA cannot determine if the number is valid - but it can
  322.      at least determine if the NPA/NXX left by the user belongs to the
  323.      city s/he claims to be calling from.
  324.  
  325.           The most common way you're likely to execute NPA is by
  326.      specifying just a state or an area code and maybe a city - with no
  327.      additional parameters.
  328.  
  329.           By specifying just a state, you'll see all area codes in that
  330.      state and all cities having at least fifteen exchanges.  The default
  331.      minimum of fifteen was established to prevent the display of every
  332.      tiny town that you're probably not interested in seeing anyway.  Of
  333.      course, you *can* specify display of small towns by using the 'min=x'
  334.      parameter where x is a low value, like 1.
  335.  
  336.           By specifying just an area code, you'll see a display similar to
  337.      that seen when specifying a state.  Except that you'll only see one
  338.      area code - the one you specified.
  339.  
  340.           By specifying a city search mask after the state or area code,
  341.      you'll narrow the search to only those cities.  This is useful if you
  342.      get gobs of output otherwise.  Since city searches add overhead to
  343.      NPA, you might notice a slight delay while NPA accesses the data
  344.      files.  This delay is more noticable on XT/AT type machines.  On
  345.      386's and above, this delay is less noticeable regardless of how
  346.      narrow the search.
  347.  
  348.           By specifying an exchange after the state or area code, you'll
  349.      narrow the search to only those cities having that exchange.  This is
  350.      especially useful if all you have is a phone number with area code
  351.      and you wish to locate the city.  As with the city search mask, this
  352.      specification may delay the output slightly.
  353.  
  354.  
  355.  
  356.      PLEASE NOTE:
  357.  
  358.           I spent many, many hours at the Houston Public Library doing
  359.      research to convert wire center names to real city names.  But I
  360.      could not find all of them (there are well over 20,000 wire centers
  361.      in the US and Canada).  The great majority of the names in this
  362.      database are actual city names that I was able to determine through
  363.      zipcode cross references and other national data repositories.  Of
  364.      the names that are wire center names and not actual city names, some
  365.      of them are simply spelled out (formal wire center names never exceed
  366.      ten characters) while others are still in their abbreviated form.
  367.      Only a tiny percentage of names are still abbreviated - those I
  368.      simply could not figure out.
  369.  
  370.           Some cities are quite close together.  If NPA does not find your
  371.      city (even with 'min=1') then double check your spelling.  If your
  372.      city is spelled correctly and still it's not found, then that city
  373.      does not have it's own wire center designation but likely shares a
  374.      wire center with a nearby (perhaps larger) city.
  375.  
  376.           If you enter exactly two characters for the state designator and
  377.      NPA does not find it, then the two characters you specified will be
  378.      searched for within the state name.  If you enter more than two
  379.      characters, NPA will automatically know it's not a postal code and
  380.      will immediately search within the state name.
  381.  
  382.           IE:  Entering 'GA' (the postal code) for the state will return
  383.      Georgia even though the consecutive letters 'GA' does not occur in
  384.      the name.  But had you entered 'GE', NPA would have still found
  385.      Georgia.  NPA would have failed on the postal code search but would
  386.      have located the GE (GEorgia).  Now, had you entered 'GEO', then NPA
  387.      would not even bother with a postal code lookup but would immediately
  388.      perform the state name search.  So either way, you find your state.
  389.  
  390.           If your state name search specification is too vague and NPA
  391.      finds two or more states meeting your search specification, then NPA
  392.      will display it's findings and advise you to narrow your search.  You
  393.      can only look at one state at a time - or use the state wildcard
  394.      character '*' to scan all states/provinces.  Note:  Using the '*'
  395.      wildcard will slow NPA a bit since it must search all data files
  396.      instead of the usual one data file.
  397.  
  398.           You can terminate NPA at anytime during execution by striking
  399.      the (Esc) key - any other key continues the display if paused.  You
  400.      cannot stack keystrokes while NPA is executing since it must
  401.      constantly strobe the keyboard looking for the abort keyin.
  402.  
  403.  
  404.      ENVIRONMENT VARIABLES
  405.  
  406.           NPA utilizes several environment variables.  They are:
  407.  
  408.           npa_data        - Location of data base files.
  409.           npa_opts        - Contains options/switches for NPA to use
  410.                             automatically without having to specify
  411.                             each time.
  412.           npa_color       - Sets color or black-and-white mode.
  413.  
  414.  
  415.      NPA_DATA environment variable.
  416.  
  417.           You undoubtedly noticed the voluminous quantity of NPA_DATA.*
  418.      files.  The database is broken up by states and provinces to make
  419.      searches faster.  By placing the data files in their own directory,
  420.      they'll stay out of the way.
  421.  
  422.           NPA has three methods of accessing it's data files.  They happen
  423.      in the following order.
  424.  
  425.           1)  'npa_data' environment variable.    if no find, then...
  426.           2)  Current directory.                  if no find, then...
  427.           3)  Regular DOS path.                   if no find, error...
  428.  
  429.           The first method that finds the data files is the one used
  430.      during this execution.  I recommend placing the NPA_DATA files in
  431.      their own subdirectory then using method #1, the 'npa_data'
  432.      environment variable.
  433.  
  434.           Suppose you have a subdirectory called 'c:\npa'.  You can
  435.      configure NPA to always look there - regardless of what drive or
  436.      directory is current by simply using the environment variable
  437.      command:
  438.  
  439.           set npa_data=c:\npa
  440.  
  441.           You should place this command in your autoexec.bat file or other
  442.      batch file that gets executed at system boot.
  443.  
  444.  
  445.      NPA_OPTS environment variable.
  446.  
  447.           If you frequently (or always) use particular options when
  448.      executing NPA, then you may store those options in an environment
  449.      variable called NPA_OPTS.  Once stored, those options will always
  450.      take effect when executing NPA without you having to specify them.
  451.      All parameters except -25/-50 may be stored in this variable.  Note:
  452.      Because of a COMMAND.COM limitation, you cannot use the equal sign as
  453.      part of the "value" when storing an environment variable.  In such a
  454.      case, use the hyphen (-).  NPA will automatically convert it to an
  455.      equal sign internally.  For example:
  456.  
  457.           set npa_opts=min-3 -x
  458.  
  459.           This will cause NPA to display all wire centers having at least
  460.      three NXXs and will display the NXX as well.  Note that some options
  461.      are mutually exclusive and will cancel other options.  This rule
  462.      applies equally to the NPA_OPTS variable as well.  e.g.  The -x
  463.      option overrides -co.  So if you place -x in the NPA_OPTS variable,
  464.      you cannot use -co even though you specify it on the command line.
  465.  
  466.  
  467.      NPA_COLOR environment variable.
  468.  
  469.           Normally NPA uses various colors on screen.  However, if you are
  470.      using a monochrome, gas plasma, or LCD display, you can disable color
  471.      altogether by setting NPA_COLOR=false.  Any other value is considered
  472.      true -- color is enabled.
  473.  
  474.  
  475.      LICENSING
  476.  
  477.           NPA, like many other programs, flies under the shareware banner.
  478.      If you like and use NPA, then *please* register.
  479.  
  480.           New versions are periodically released that contain updated
  481.      database information as well as new features.  Registering will
  482.      ensure your notification of these new releases.
  483.  
  484.           You can register by mail using check/money order/Visa/MC.  Or
  485.      you can register by telephone using Visa/MC.  Either way, you'll
  486.      receive the two keys (discussed in the BRAND.DOC file) necessary to
  487.      brand NPA as registered.
  488.  
  489.           If you register by telephone, you can get the registration keys
  490.      the same day in as little as fifteen minutes.  I'm generally away
  491.      from the office so voice-mail will pick up.  You may register via
  492.      voice-mail and the system will page me thus allowing me to return
  493.      your call within a few minutes.  The system will page me immediately
  494.      if your message is left during the following hours:  Mon-Fri 7a-11p,
  495.      Sat-Sun 8a-11p.  All times are Central Time.
  496.  
  497.           Note that the voice-mail system is not an unprotected cassette
  498.      tape telephone answering machine that just anybody can walk upto.
  499.      It's a full-blown PIN accessed PBX voice-mail system (ASPEN by Octel
  500.      communications for the telephony-literate out there - which I suspect
  501.      most of y'all are) so your credit card information is secure!  If
  502.      you desire to register by phone and voice-mail picks up, please leave
  503.      the following information:
  504.  
  505.           1.  The name to register.   Please spell it out.  The name
  506.               must reasonably match the card holder's name.
  507.           2.  The credit card number.
  508.           3.  The expiration date.
  509.  
  510.           If you simply prefer not to register via voice-mail, that's
  511.      fine.  I'll certainly call you back.  But using voice-mail will speed
  512.      the order since I'll have everything all ready to go when I call.
  513.  
  514.           The registration fee is twenty five dollars.  I will process the
  515.      order and return your call promptly.  If you do not anticipate being
  516.      available immediately after registering via voice-mail, then please
  517.      indicate in your message if it is alright for me to leave the
  518.      registration data to who/whatever answers your phone in your absense.
  519.      If it's not okay, then I'll continue to call until I reach you
  520.      personally.
  521.  
  522.  
  523.                PC Consultant
  524.                P.O. Box 42086
  525.                Houston TX 77242-2086
  526.                Ph. 713/826-2629  (v-mail no answer)
  527.  
  528.           Thank you for using NPA and for registering if you like it!
  529.  
  530.  
  531.          ∙-═≡═-∙  Other products offered by the PC Consultant  ∙-═≡═-∙
  532.  
  533.  
  534.           « TimeLock »
  535.  
  536.           TimeLock is a tiny memory resident security utility that locks
  537.      the PC keyboard after a user pre-specified period of inactivity,
  538.      thereby protecting a sensitive LAN/mainframe userid or application
  539.      program from spying eyes and curious fingers while you are away.  An
  540.      invaluable addition to your company's PC security arsenal!
  541.  
  542.           Branches of the US, Canadian, and Australian government trust
  543.      TimeLock as do many private and public companies.
  544.  
  545.           TimeLock can be instantly locked via hot-key, batch file, or
  546.      through keyboard inactivity.  The *only* way to regain access to the
  547.      PC once the keyboard is locked is by entering your secret password.
  548.      Otherwise the PC must be cold-booted (powered off & on).  And that,
  549.      of course, will terminate your sensitive LAN/mainframe connection -
  550.      protecting your userid from intrusion!
  551.  
  552.           TimeLock is written entirely in assembly language for optimum
  553.      speed and size.  Uses less than 3K RAM!
  554.  
  555.           Please telephone at the above number for more details on
  556.      TimeLock.  If you are a corporate network administrator in charge of
  557.      company PCs or PC products manager charged with software evaluation
  558.      and recommendation, I'll send you a diskette free of charge so you
  559.      can evaluate TimeLock for yourself.
  560.  
  561.           Once again, thank you for choosing software by the PC Consultant!
  562.  
  563.